package com.yunxiao.cloud.job.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunxiao.cloud.job.entity.JobLogQueryInfo;
import com.yunxiao.cloud.job.entity.ScheduleJobLog;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 定时任务日志 Mapper 接口
 * </p>
 *
 * @author yunxiao
 * @since 2020-01-09
 */
@Mapper
public interface ScheduleJobLogMapper extends BaseMapper<ScheduleJobLog> {

    /**
     * 根据时间清理日志表
     * @param date
     */
    void deleteByTime(Date date);

    /**
     * 根据条件查询
     * @param info
     * @return
     */
    List<ScheduleJobLog> queryJobLogs(JobLogQueryInfo info);
}
